/*  
 *  Nanjing JIYU Technology Co.,Ltd All rights reserved.
 *  Copyright (C) 2022 
 *  ==============================================================
 * 
 *  gray.c 
 *    灰度传感器功能的实现
 *
 *  --------------------------------------------------------------
 *  
 */

#include "gray.h"

/*------------------------ 通过灰度判断位置偏差 --------------------*/



void gray_test(void)
{
  while (1)
  {
    if (GRAY_FR == 1)
    {
      printf("FR\n");
    }
    if (GRAY_S0 == 1)
    {
      printf("S0\n");
    }
    if (GRAY_S1 == 0)
    {
      printf("S1\n");
    }

    delay_ms(500);
    printf(".\n");
  }
}
